const db = require("../../middleware/db");
const Sequelize = require("sequelize");
// 字典表
module.exports = sys_parameter = db.define("sys_parameter", {
  key: {
    type: Sequelize.STRING(100),
    allowNull: false,
    defaultValue: "",
    comment: "字典key",
  },

  value: {
    type: Sequelize.STRING(100),
    allowNull: false,
    defaultValue: "",
    comment: "值",
  },

  remark: {
    type: Sequelize.STRING(500),
    allowNull: false,
    defaultValue: "",
    comment: "备注",
  },

  // 是否允许修改 0 允许，1 不允许
  is_modified: {
    type: Sequelize.INTEGER(2),
    allowNull: false,
    defaultValue: 0,
  },
});

// sys_parameter.sync({ force: true })
